
const express = require("express");

// 创建路由器对象
const router = express.Router()
  
const { resolve } = require("path");


  // 配置静态访问
    router.get("/register", (req, res) => {
      res.sendFile(resolve("./web/html", "register.html"));
    });
  router.get("/login", (req, res) => {
    res.sendFile(resolve("./web/html", "login.html"));
  });
  
module.exports = router;